package top.zackyoung.redis.on;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author ZackYoung
 * @version 1.0
 * @date 2021/11/5
 */
@RestController
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TestController {
    final TestService testService;

    @RequestMapping("/test")
    public Map<String, Object> map(Integer id) {
        return testService.map(id);
    }
}
